package com.example.tse.rbhttpservice.service.home.model;

import com.example.tse.rbhttpservice.service.RudderResponse;

import java.util.ArrayList;
import java.util.List;


//import com.rbyair.services.home.model.HomeGetSpecialsGoods;

/**
 * 获取热卖推荐
 *
 * @author wliu
 *         edit tse
 */
public class HomeGetSpecials extends RudderResponse {

    private List<HomeGetSpecialsGoods> goods = new ArrayList<HomeGetSpecialsGoods>();


    private String url = "";


    private String link = "";


    private String linkType = "";


    private String specialId = "";

    private String specialName = "";


    private String curTime = "";


    /**
     * @return goods
     */
    public List<HomeGetSpecialsGoods> getGoods() {
        return this.goods;
    }

    /**
     * @return goods
     */
    public void setGoods(List<HomeGetSpecialsGoods> goods) {
        this.goods = goods;
    }
/**
 methodName    Goods
 type          List<HomeGetSpecialsGoods>
 name          goods
 defaultType   new ArrayList<HomeGetSpecialsGoods>()
 */

    /**
     * @return url
     */
    public String getUrl() {
        return this.url;
    }

    /**
     * @return url
     */
    public void setUrl(String url) {
        this.url = url;
    }
/**
 methodName    Url
 type          String
 name          url
 defaultType   ""
 */

    /**
     * @return link
     */
    public String getLink() {
        return this.link;
    }

    /**
     * @return link
     */
    public void setLink(String link) {
        this.link = link;
    }
/**
 methodName    Link
 type          String
 name          link
 defaultType   ""
 */

    /**
     * @return linkType
     */
    public String getLinkType() {
        return this.linkType;
    }

    /**
     * @return linkType
     */
    public void setLinkType(String linkType) {
        this.linkType = linkType;
    }
/**
 methodName    LinkType
 type          String
 name          linkType
 defaultType   ""
 */

    /**
     * @return specialId
     */
    public String getSpecialId() {
        return this.specialId;
    }

    /**
     * @return specialId
     */
    public void setSpecialId(String specialId) {
        this.specialId = specialId;
    }
/**
 methodName    SpecialId
 type          String
 name          specialId
 defaultType   ""
 */

    /**
     * @return curTime
     */
    public String getCurTime() {
        return this.curTime;
    }

    /**
     * @return curTime
     */
    public void setCurTime(String curTime) {
        this.curTime = curTime;
    }

    public String getSpecialName() {
        return specialName;
    }

    public void setSpecialName(String specialName) {
        this.specialName = specialName;
    }
/**
 methodName    CurTime
 type          String
 name          curTime
 defaultType   ""
 */

/**


 private static void filterFor(HomeGetSpecialsGoods home) {
 if (home.getProductId() == null) {
 home.setProductId("");
 }
 if (home.getName() == null) {
 home.setName("");
 }
 if (home.getBn() == null) {
 home.setBn("");
 }
 if (home.getPrice() == null) {
 home.setPrice("");
 }
 if (home.getMktprice() == null) {
 home.setMktprice("");
 }
 if (home.getBeginTime() == null) {
 home.setBeginTime("");
 }
 if (home.getStoreNum() == null) {
 home.setStoreNum("");
 }
 if (home.getImageHotSales() == null) {
 home.setImageHotSales("");
 }
 if (home.getImageCountry() == null) {
 home.setImageCountry("");
 }
 if (home.getBrief() == null) {
 home.setBrief("");
 }
 if (home.getJoinNum() == null) {
 home.setJoinNum("");
 }
 }

 public static void filter(HomeGetSpecials home) {
 if (home.getGoods() == null) {
 home.setGoods(new ArrayList<HomeGetSpecialsGoods>());
 } else {
 for (HomeGetSpecialsGoods item : home.getGoods()) {
 filterFor(item);
 }
 }
 if (home.getUrl() == null) {
 home.setUrl("");
 }
 if (home.getLink() == null) {
 home.setLink("");
 }
 if (home.getLinkType() == null) {
 home.setLinkType("");
 }
 if (home.getSpecialId() == null) {
 home.setSpecialId("");
 }
 if (home.getCurTime() == null) {
 home.setCurTime("");
 }
 }

 */

}
